package xyz.caijiwang.service;

import com.github.pagehelper.PageInfo;
import xyz.caijiwang.entity.Article;
import xyz.caijiwang.entity.Comment;
import xyz.caijiwang.entity.User;
import xyz.caijiwang.entity.res.CommentRes;

import java.util.List;

public interface ArticleService {
    PageInfo<Article> pageGetAllArticle(Integer pageNum, Integer pageSize);

    void updateArticle(Article article);

    void delArticle(Integer articleid);

    List<CommentRes> getCommentsByArticle(Integer articleid);

    User getUserInfoByParentid(Integer parentid);

    void addFatherComment(Comment record);

    void addChildComment(Comment record);
}
